[#Part: CMP TallyShopFeatures Left]
 Add : Line : EnableInvoice_0007

[Line : EnableInvoice_0007]
 Field : medium prompt, EnableInvoice_0007
 Local : Field : medium prompt : set as : "Enable A5 Paper e-Invoice 0007 Print Format ?"
 Local : Field : Medium Prompt : width : 35
 
 space top : 0.2 cm

[Field : EnableInvoice_0007]
 Use : Logical field
 Storage : EnableInvoice_0007
 
[System: formula]
 EnableInvoice_0007 : $EnableInvoice_0007:company:##svcurrentcompany
 HVEnableInvoice_0007 : $EnableInvoice_0007:voucherType:##SVVoucherType
 
[System: udf]
 EnableInvoice_0007 : Logical : 8501
 
[#Part: VTYP Main Left]
 add : Parts : At End : HVEnableInvoice_0007

[Part: HVEnableInvoice_0007]
 Line : HVEnableInvoice_0007
 
 Local : Field : LongPrompt : Width : @@LongWidth + 5

[Line: HVEnableInvoice_0007]
 Space Top: 2 mm
 
 Field: Long prompt,HVEnableInvoice_0007
 Local: Field: Long prompt : Set as: "Enable A5 Paper e-Invoice 0007 Print Format ?"
 
 Invisible: not @@EnableInvoice_0007

[Field: HVEnableInvoice_0007]
 Use: logical field
 Storage: EnableInvoice_0007

[Part: A5_eInvoice_0007_PrintExpQRC]
 Part: A5_eInvoice_0007_PrintExpQRC1
 Part: A5_eInvoice_0007_PrintExpQRC2
 Part: A5_eInvoice_0007_PrintExpQRC3
 Vertical:Yes
 
 Local:Part:A5_eInvoice_0007_PrintExpQRC1 : Invisible:$$IsEmpty:@@GSTeInvIRN
 Local:Part:A5_eInvoice_0007_PrintExpQRC2 : Invisible:$$IsEmpty:@@GSTeInvIRN
 Local:Part:A5_eInvoice_0007_PrintExpQRC3 : Invisible:NOT $$IsEmpty:@@GSTeInvIRN
 
[Part:A5_eInvoice_0007_PrintExpQRC1]
 Line:A5_eInvoice_0007_PrintExpQRC1
 
[Line:A5_eInvoice_0007_PrintExpQRC1]
 Field:A5_eInvoice_0007_PrintExpQRC1
 
[Field:A5_eInvoice_0007_PrintExpQRC1]
 Set as: "e-Invoice"
 Width: 22 mm
 Style:Small bold
 Align:Centre

[Part: A5_eInvoice_0007_PrintExpQRC2]
 QRCode : @@eInvoiceQRCValue : Yes
 
 Line : eInvoice QRC Details
 Width : 22 mm
 Height : 22 mm

[Part: A5_eInvoice_0007_PrintExpQRC3]
 Line : eInvoice QRC Details
 Width : 25 mm
 
[Part: A5_eInvoice_0007_Expinv QRInfo Title]
 Right Part : A5_eInvoice_0007_Expinv Title Info 
 
 Vertical : No
 Border : Thin Top Left Right 

[Part: A5_eInvoice_0007_Expinv Title Info]
 ;Part : Expinv Title Info Top
 Border : Thin Left
 
 Part : A5_eInvoice_0007_PrintExp QRC Title
 Part : A5_eInvoice_0007_PrintExp IRN Details
 
 Vertical : Yes
 
 Local : Line : A5_eInvoice_0007_PrintExp QRC Title : Local:Field:Default : Align : Centre
 Local : Line : A5_eInvoice_0007_PrintExp QRC Title : Local:Field:Default : Set as : "e-Invoice Details"
 Local : Line : A5_eInvoice_0007_PrintExp QRC Title : Local:Field:Default : Full Width:Yes
 Local : Line : A5_eInvoice_0007_PrintExp QRC Title : Local:Field:Default : Border:Thin Bottom
 
 Local : Field : Name Field : Full Width:Yes
 
 Local : Line : Default : Space Top :.1
 
[Part: A5_eInvoice_0007_PrintExp QRC Title]
 Line : A5_eInvoice_0007_PrintExp QRC Title
 
[Line: A5_eInvoice_0007_PrintExp QRC Title]
 Field : eInvoice QRC Title
 
[Part: A5_eInvoice_0007_PrintExp IRN Details]
 Invisible : NOT ##SAGSTWithQRInfo OR NOT @@IsVchGSTeInvAppl

 Line : A5_eInvoice_0007_PrintExp IRN, A5_eInvoice_0007_PrintExp AckNo;, A5_eInvoice_0007_PrintExp AckDate
 
[Line: A5_eInvoice_0007_PrintExp IRN]
 Field : Medium Prompt, Name Field
 Local : Field : Medium Prompt : Width : 4
 Local : Field : Medium Prompt : Style : Small 
 Local : Field : Name Field : Style : Small Bold
 
 Local : Field : Medium Prompt : Set as : $$LocaleString:"IRN"
 Local : Field : Name Field : Set as : @@GSTeInvIRN
 Local : Field : Name Field : Width : @@eInvIRNPrintDimension % page 
 Local : Field : Name Field : Line : 0
 
[Line: A5_eInvoice_0007_PrintExp AckNo]
 Field : Medium Prompt, Name Field
 Local : Field : Medium Prompt : Width : 6
 Local : Field : Medium Prompt : Style : Small 
 Local : Field : Name Field : Style : Small Bold
 
 Local : Field : Medium Prompt : Set as : $$LocaleString:"Ack No."
 Local : Field : Name Field : Set as : If ##IseInvPSPrintAfterSave Then ##eInvPSAckNo Else $IRNAckNo
 
 RightField : A5_eInvoice_0007_PrintExpAckDate
 Local : Field : Short Prompt : Width : 6
 Local : Field : Short Prompt : Style : Small
 Local : Field : A5_eInvoice_0007_PrintExpAckDate : Style : Small Bold
 
 Local : Field : Short Prompt : Set as : $$LocaleString:"Ack Date :"
 Local : Field : Short Prompt : Align:Right
 Local : Field : A5_eInvoice_0007_PrintExpAckDate : Set as : If ##IseInvPSPrintAfterSave Then "Ack Date : " + $$String:##eInvPSAckDate Else "Ack Date : " + $$String:$IRNAckDate
 
[Field: A5_eInvoice_0007_PrintExpAckDate]
 Align:Right
 Use : Name Field
 
[Line: A5_eInvoice_0007_PrintExpAckDate]
 Invisible:Yes
 Use : A5_eInvoice_0007_PrintExp IRN Details Template
 Space Bottom: 0.25
 Local : Field : Medium Prompt : Set as : $$LocaleString:"Ack Date"
 Local : Field : Name Field : Set as : If ##IseInvPSPrintAfterSave Then $$String:##eInvPSAckDate Else $$String:$IRNAckDate
 
[Line: A5_eInvoice_0007_PrintExp IRN Details Template]
 Field : Medium Prompt, Name Field
 Local : Field : Medium Prompt : Width : 6
 Local : Field : Medium Prompt : Style : Small
 Local : Field : Name Field : Style : Small Bold
 
[#Form: Comprehensive Invoice]
 Add:Option: HV Invoice_0007 : @@EnableInvoice_0007 and @@HVEnableInvoice_0007 
 
[#Form: Simple Printed Invoice]
 Add:Option: HV Invoice_0007 : @@EnableInvoice_0007 and @@HVEnableInvoice_0007 

[!Form : HV Invoice_0007]

 Delete:Parts
 Delete:Bottom Parts
 Delete:PageBreak
 Delete:Option

 Delete : Height
 Delete : Width
 Delete : Space Right
 Delete : Space Left
 Delete : Space Top
 Delete : Space Bottom
 
 Height : 100% Page
 Width : 100% Page
 
 Add : Space Left : @@InvSpaceLeft inch
 Add : Space Right : 0.5 inch
 Add : Space Top : @@InvSpace inch
 Add : Space Bottom : 0.25 inch
 
 Add : Part : OP Invoice_0007Pgbreak
 
 Add : Part : Invoice_0007_Details
 
 Add : BottomPart: Invoice_0007_Total
 
 Add : bottomPart: Invoice_0007_BankDetails
 Add : bottomPart: Invoice_0007_Amount_Chargeable2
 Add : bottomPart: Invoice_0007_Narration
 Add : BottomPart: VCH GST Analysis
 
 Local : Part : VCH GST Analysis : Local : Field: Default: Local : Style: Default: Font Name : "Times New Roman (Western)"
 Local : Part : VCH GST Analysis : Local : Field: Default: Local : Style: Default: Height : @@SmallSize - 1
 
 Local : Part : VCH GST AnalysisAmtDetails : Invisible: Yes
 Local : Part : VCH GST AmtInWords : Invisible: Yes
 
 Add : bottomPart: Invoice_0007 ForCMP
 
 
 Add : Page Break: CL Invoice_0007Pgbreak , OP Invoice_0007Pgbreak
/*
 Local : Style: Normal : Font Name : "Times New Roman (Western)"
 Local : Style: Normal Bold : Font Name : "Times New Roman (Western)"

 Local : Style: Large : Font Name : "Times New Roman (Western)"
 Local : Style: Large Bold : Font Name : "Times New Roman (Western)"
 
 Local : Style: Small : Font Name : "Times New Roman (Western)"
 Local : Style: Small Bold : Font Name : "Times New Roman (Western)"
 */
 Local : Field : Invoice_0007_No : Width : 5 mm
 Local : Field : Invoice_0007_Item : Width : 10 mm
 
 Local : Field : Invoice_0007_HSN : Width : 12 mm
 Local : Field : Invoice_0007_GST : Width : 8 mm
 Local : Field : Invoice_0007_Qty : Width : 13 mm
 Local : Field : Invoice_0007_Qty2 : Width : 13 mm
 Local : Field : Invoice_0007_RateTax : Width : 13 mm
 Local : Field : Invoice_0007_Rate : Width : 13 mm
 
 Local : Field : Invoice_0007_Per : Width : 7.4 mm
 Local : Field : Invoice_0007_Disc : Width : 11 mm
 Local : Field : Invoice_0007_Amount : Width : 19 mm


[Part:CL Invoice_0007Pgbreak]
 Line : CL Invoice_0007Pgbreak
 
[Line:CL Invoice_0007Pgbreak]
 Field : CL Invoice_0007Pgbreak
 Border : thin Top
 
[Field:CL Invoice_0007Pgbreak]
 Use : name field
 Set as : "Continue. . . "
 Align : Right
 Full Width: Yes
 Style : Small bold

[Part: OP Invoice_0007Pgbreak]
 
 Part : Invoice_0007CMPTiTLE2v
 
 Part : Invoice_0007TiTLE
 
 Part : Invoice_0007Top
 
 Part : Invoice_0007 TitleE
 
 Vertical: Yes

 Add : Switch : ExpInv Title1 : A5_eInvoice_0007_Expinv QRInfo : NOT $$IsEmpty:@@GSTeInvIRN
 

[!Part: A5_eInvoice_0007_Expinv QRInfo]
 Add:Part:Before:Invoice_0007TiTLE:A5_eInvoice_0007_Expinv QRInfo Title



[Part: Invoice_0007CMPTiTLE2v]

 part : Invoice_0007_Logo
 part : Invoice_0007CMPTiTLE2
 
 RightPart : A5_eInvoice_0007_PrintExp QRC
 Border : thin box
 
 Invisible: not ##PrintWithCompanyName


[Part: Invoice_0007_Logo]

 Invisible : ($$InExportMode AND @@IsExcelFormat) OR ##SvPreprinted OR NOT ($IsSales OR $IsDebitNote OR $IsCreditNote OR $IsDelNote OR $IsReceipt OR $IsPurcOrder OR $IsSalesOrder OR $IsOutSourceOrder OR $IsJobWorkOrder OR $IsMaterialIn OR $IsMaterialOut)
 
 Lines : Invoice_0007_Logo
 Graph Type : ##SALogoPath
 
 Width : 22
 Height : 4
 
 Space Top : 1 mm
 Space Left : 2 mm
 
[Line: Invoice_0007_Logo]
 Field : Invoice_0007_Logo
 
[Field : Invoice_0007_Logo]
 set as : ""


[Part: Invoice_0007CMPTiTLE2]
 Line : Invoice_0007_Cmpmailname
 Line : Invoice_0007_CmpmailnameAddress

 
 Local : Field : Long Prompt : width : 20
 
 Line : Invoice_0007_CmpPh
 Line : Invoice_0007_CmpPh2
 Line : Invoice_0007_CmpGST

 
 ;Border : Thin Box

[Line: Invoice_0007_Cmpmailname]
 Field : Invoice_0007_Cmpmailname
 Space Top:.3
 Space Bottom:.2
 
[Field:Invoice_0007_Cmpmailname]
 Use : Name Field
 Set as : @@CmpMailName
 Align : Centre
 Full Width:Yes
 Style : Large Bold
 
[Style: Invoice_0007_Cmpmailname]
 Bold : Yes
 Height : 20
 Font : "Arial Rounded MT Bold"


[Line: Invoice_0007_CmpmailnameAddress]
 Field : Invoice_0007_CmpmailnameAddress
 
[Field:Invoice_0007_CmpmailnameAddress]
 Use : Name Field
 Set as : $$FullList:Invoice_0007_CmpmailnameAddress:$Address
 Align : Centre
 Full Width : Yes
 Style : Small
 Line : 0
 
[Collection: Invoice_0007_CmpmailnameAddress]
 Type : Address : Company
 Child of : ##SVCurrentCompany
 Object : Company State

[Line:Invoice_0007_CmpPh]
 Field : Invoice_0007_CmpPh
 
[field : Invoice_0007_CmpPh]
 Use : name field
 set as : @@CmpContacts ;+ " " + @@CmpEmail
 FullWidth : Yes
 Style :Small
 Align :Centre

[Line:Invoice_0007_CmpPh2]
 Field : Invoice_0007_CmpPh2
 
[field : Invoice_0007_CmpPh2]
 Use : name field
 set as : @@CmpEmail
 FullWidth : Yes
 Style :Small
 Align :Centre
 
[Line:Invoice_0007_CmpGST]
 Field : Invoice_0007_CmpGST
 
[field : Invoice_0007_CmpGST]
 Use : name field
 set as : "GSTIN : " + @@CMPGSTaxNumber ;+ ", State Name : " + $StateName:Company:##SVCurrentCompany + ", Code : " + $$getgststatecode:$StateName:Company:##SVCurrentCompany
 FullWidth : Yes
 Style : Small bold
 Align : Centre

[Part: Invoice_0007TiTLE]
 Line: Invoice_0007TiTLE

[Line: Invoice_0007TiTLE]

 Border:thin box
 
 ;Field : Info Field
 Field : Simple Field
 ;Field : Copy Field 
 Local : Field : Simple Field : Style : Small bold
 
 Local : Field : Info Field : Info : ""
 Local : Field : Info Field : FullWidth : Yes
 Local : Field : Info Field : PrePrinted : Yes
 Local : Field : Info Field : Cells : $$Quotient:@@ExcelCellColumn:3
 Local : Field : Simple Field : Set as : If $$InExportMode AND @@IsExcelFormat Then ##ReportTitle Else If ##PrintWithPageNo Then ##ReportTitle + @@ExtraPageNo Else ##ReportTitle
 
 Local : Field : Simple Field : FullWidth : Yes
 Local : Field : Simple Field : Align : Centre
 Local : Field : Simple Field : PrePrinted : Yes
 Local : Field : Simple Field : Cells : $$Quotient:@@ExcelCellColumn:3
 Local : Field : Copy Field : Cells : @@ExcelCellColumn - 2 * ($$Quotient:@@ExcelCellColumn:3)

[Part: Invoice_0007Top]
 
 Part : Invoice_0007_PartyName
 
 Right Part : Invoice_0007_No
 
 Vertical : No
 
 Border : THIN Box

 ;Local : Line:Default : Space Top: 0.1

[Part: Invoice_0007_PartyName]
 Line : Invoice_0007_PartyName
 Line : Invoice_0007_PartyAddress
 
 ;BottomLine : Invoice_0007_PartyPINNo
 ;BottomLine : Invoice_0007_PartyContact
 BottomLine : Invoice_0007_PartyMobileNo
 BottomLine : Invoice_0007_PartyGSTNo

 Local : Field: medium prompt: Style : Small
 Local : Field: Long prompt: Style : Small
 Local : Field: medium prompt: Width : 8
 
 ;Local : Line : Invoice_0007_PartyMobileNo : Space Top: 0.1
 ;Local : Line : Invoice_0007_PartyGSTNo : Space Top: 0.1
 
[Line: Invoice_0007_PartyName]
 Field : Medium Prompt,Invoice_0007_PartyName
 
 Local : Field: medium prompt: Set as: "M/s"
 ;Local : Field: Invoice_0007_PartyName: Set as: $BasicBuyerName
 Local : Field: Invoice_0007_PartyName: Set as: $PartyLedgerName

[Field: Invoice_0007_PartyName]
 Use : name field 
 Set as : $BasicBuyerName
 Align : Left
 Full Width : Yes
 Style : Small Bold

[Line: Invoice_0007_PartyAddress]
 Field : Medium Prompt,Invoice_0007_PartyName
 
 Local : Field: medium prompt: Set as: "Address"
 ;Local : Field: Invoice_0007_PartyName: Set as: $$FullList:BasicBuyerAddress:$BasicBuyerAddress
 Local : Field: Invoice_0007_PartyName: Set as: $$FullList:Invoice_0007_PartyAddress:$Address
 Local : Field: Invoice_0007_PartyName: Line:2
 
[Collection: Invoice_0007_PartyAddress]
 Type : Address : Ledger
 Child of : $PartyLedgerName
 ;Object : StatePinDetail
 Fetch : Address, Mailing Name
 ;Option : GroupStatePin : NOT $$IsEmpty:##GroupName




[Line: Invoice_0007_PartyPINNo]
 Field : Medium Prompt,Invoice_0007_PartyName
 
 Local : Field: medium prompt: Set as: "PIN No"
 Local : Field: Invoice_0007_PartyName: Set as: $PINCode:ledger:$PartyledgerName
 



[Line: Invoice_0007_PartyContact]
 Field : Medium Prompt,Invoice_0007_PartyName
 
 Local : Field: medium prompt: Set as: "Contact"
 Local : Field: Invoice_0007_PartyName: Set as: $LedgerContact:ledger:$PartyledgerName
 
[Line: Invoice_0007_PartyMobileNo]
 Field : Medium Prompt,Invoice_0007_PartyName
 
 Local : Field: medium prompt: Set as: "Mobile No"
 Local : Field: Invoice_0007_PartyName: Set as:$LedgerMobile:ledger:$PartyledgerName
 Local : Field: Invoice_0007_PartyName: Local Formula:LedgerMobile : $LedgerMobile:ledger:$PartyledgerName
 Local : Field: Invoice_0007_PartyName: Local Formula:LedgerPhone : $LedgerPhone:ledger:$PartyledgerName

[Line: Invoice_0007_PartyGSTNo]
 
 Field : Medium Prompt,Invoice_0007_PartyName
 
 Local : Field: medium prompt: Set as: "GSTIN"
 Local : Field: Invoice_0007_PartyName: Set as: $vPartyGSTIN:ledger:$PartyledgerName

[#Object:Ledger]
	 vPartyGSTIN  : $LedGSTRegDetails[Last].GSTIN
     
[Part: Invoice_0007_No]
 
 Line: Invoice_0007_BillNo
 Line: Invoice_0007_BillDate
 Line: Invoice_0007_eWayBill
 
 Line: Invoice_0007_Transport
 Line: Invoice_0007_VehicleNo
 
 ;Line: Invoice_0007_SalesmanNamev
 ;Line: Invoice_0007_DueDate
 
 
 Border: THIN left
 
 Local: Field: medium prompt: Style : Small
 Local: Field: medium prompt: Width : 9

 Space Right:.2

[Line: Invoice_0007_SalesmanNamev]
 Field: medium prompt,Invoice_0007_BillNo
 Local: Field: medium prompt : Set as: "Salesman"
 Local: Field: Invoice_0007_BillNo: Set as: $Date
 
 Local : Field : Invoice_0007_BillNo : Set as : IF $$IsEmpty:@Mob_No THEN $VaibhavSalesmanTable ELSE $VaibhavSalesmanTable + " - " + @Mob_No
 Local : Field : Invoice_0007_BillNo : Local Formula:Mob_No : $VaibhavMobileNoSalesman:CostCentre:$VaibhavSalesmanTable
 

[Line: Invoice_0007_DueDate]
 Field: medium prompt,Invoice_0007_BillNo
 Local: Field: medium prompt : Set as: "Due Date"
 ;Local: Field: Invoice_0007_BillNo: Set as : $$String:($$Date:$Date + $$Number:$BasicDueDateOfPymt):"ShortDate"
 Local: Field: Invoice_0007_BillNo: Set as : $$String:($$Date:$Date + $$Number:$BasicDueDateOfPymt):"ShortDate" + " (" + $BasicDueDateOfPymt + ")"
 
[Line: Invoice_0007_BillNo]
 Field: medium prompt,Invoice_0007_BillNo
 Local: Field: medium prompt: Set as: "Invoice No"
 
[Line: Invoice_0007_BillDate]
 Field: medium prompt,Invoice_0007_BillNo
 Local: Field: medium prompt : Set as: "Invoice Date"
 Local: Field: Invoice_0007_BillNo: Set as: $$String:$Date:"ShortDate"
 
[Field: Invoice_0007_BillNo]
 Use : name field
 Set as : $VoucherNumber
 Style : Smallbold
 ;;Width : 27.1 mm
 Width : 28.6 mm
 ;Width : IF ##SAWithDiscount THEN 26 else 27.1 mm

[Line: Invoice_0007_eWayBill]
 Field: medium prompt,Invoice_0007_BillNo
 
 Local: Field: medium prompt: Set as: "e-Way Bill No"
 Local: Field: Invoice_0007_BillNo: Set as: If (##IseWayPSPrintAfterSave OR ##IseInvPSPrintAfterSave) Then ##vGSTeWayBillNumber Else +
 If ##IsVchInCreateMode OR ##IsVchInDuplicateMode Then +
  $(Voucher, #vLastCreatedVchId).GSTeWayBillNumber +
  Else $eWayBillDetails[Last].BillNumber
  
 ;$$CollectionField:$BillNumber:(-1):EWAYBILLDETAILS
 
[Line: Invoice_0007_Transport]
 Field: medium prompt,Invoice_0007_Transport
 Local: Field: medium prompt: Set as: "Transport"
 
[Field:Invoice_0007_Transport]
 Use : name Field
 Set as: $BasicShippedBy
 Style : Smallbold
 Width : 27.1 mm
 Align:Left
 

[Line: Invoice_0007_VehicleNo]
 Field: medium prompt,Invoice_0007_BillNo
 Local: Field: medium prompt: Set as: "Vehicle No"
 Local: Field: Invoice_0007_BillNo: Set as: $BasicShipVesselNo

[Part: Invoice_0007 TitleE]
 Line : Invoice_0007_Title
 
 Common Border:Yes
 

[Line:Invoice_0007_Title]
 
 Local : Field: default : Delete:Storage
 Local : Field: default : Delete:Inactive
 Local : Field: default : Type:String
 
 Field : Invoice_0007_No
 Field : Invoice_0007_Item
 
 RightField : Invoice_0007_HSN
 RightField : Invoice_0007_GST
 ;RightField : Invoice_0007_Qty
 RightField : Invoice_0007_Qty2

 RightField : Invoice_0007_RateTax
 RightField : Invoice_0007_Rate
 RightField : Invoice_0007_Per
 RightField : Invoice_0007_Disc
 RightField : Invoice_0007_Amount
 
 
 Local : Field: default : Style : Small bold
 Local : Field: default : Line : 1
 Local : Style : Small bold: Height : @@SmallSize - 1
 
 Local : Field: Invoice_0007_No : Line : 2
 Local : Field: Invoice_0007_Item : Line : 2
 Local : Field: Invoice_0007_HSN : Line : 2
 Local : Field: Invoice_0007_GST : Line : 2
 Local : Field: Invoice_0007_RateTax : Line : 2
 Local : Field: Invoice_0007_Disc : Line : 2
 
 Local : Field: default : Align:Centre
 Local : Field: Invoice_0007_Item : Align:Centre
 
 Border : thin bottom
 
 Local : Field : Invoice_0007_No : Set as : "Sr" + $$NewLine + "No"
 Local : Field : Invoice_0007_Item : Set as : "Description of" + $$NewLine + "Goods"
 
 Local : Field : Invoice_0007_HSN : Set as : "HSN" + $$NewLine + "Code"
 Local : Field : Invoice_0007_GST : Set as : "GST" + $$NewLine + "%"
 Local : Field : Invoice_0007_Qty : Set as : "Bag"
 Local : Field : Invoice_0007_Qty2 : Set as : "Qty"
 Local : Field : Invoice_0007_RateTax : Set as : "Rate" + $$NewLine + "Inc of Tax"
 Local : Field : Invoice_0007_Rate : Set as : "Rate"
 Local : Field : Invoice_0007_Per : Set as : "Per"
 Local : Field : Invoice_0007_Disc : Set as : "Disc" + $$NewLine + "%"
 Local : Field : Invoice_0007_Amount : Set as : "Amount"

 

[Part: Invoice_0007_Details]
 ;Line : Invoice_0007_Title
 
 Line : Invoice_0007_Details 
 Repeat : Invoice_0007_Details : InventoryEntries
 
 ;Bottom Line: Invoice_0007_Total
 
 Scroll : Vertical
 Common Border: Yes
 Float : No

 Total : Invoice_0007_Qty ,Invoice_0007_Qty2
 Total : Invoice_0007_Amount


[Line:Invoice_0007_Details]

 Local : Field: default : Delete:Storage
 Local : Field: default : Delete:Inactive
 
 Field : Invoice_0007_No
 Field : Invoice_0007_Item
 
 RightField : Invoice_0007_HSN
 RightField : Invoice_0007_GST
 ;RightField : Invoice_0007_Qty
 RightField : Invoice_0007_Qty2

 RightField : Invoice_0007_RateTax
 RightField : Invoice_0007_Rate
 RightField : Invoice_0007_Per
 RightField : Invoice_0007_Disc
 RightField : Invoice_0007_Amount
 
 Local: Field: default : Style: Small 
 Local: Field: Invoice_0007_Item : Style: Small Bold
 Local: Field: Invoice_0007_Qty2 : Style: Small Bold
 Local: Field: Invoice_0007_Qty : Style: Small Bold
 
 ;Border : thin Bottom
 
 ;Space Top : 0.5 mm
 Explode : Invoice_0007 AltQty : @@InvWithQty AND NOT $$IsEmpty:$StockItemName AND NOT @@NoAltUnits and (Not @@AltUnitasCol and @@InvWithAltunit)
 Explode : Invoice_0007 AltQty2 : NOT $$IsEmpty:@@Item_AdditionalUnits AND (@@Enable_SecondAltUnit and @@HVEnable_SecondAltUnit) AND @@ShowAltQty_Column

[Part: Invoice_0007 AltQty]
 Line : Invoice_0007 AltQty
 
[Line: Invoice_0007 AltQty]
 Local : Field: default : Delete:Storage
 Local : Field: default : Delete:Inactive
 Local : Field: default : Set as:""
 Local : Field: default : Format:"No zero"
 
 Field : Invoice_0007_No
 Field : Invoice_0007_Item
 
 RightField : Invoice_0007_HSN
 RightField : Invoice_0007_GST
 RightField : Invoice_0007_Qty
 ;RightField : Invoice_0007_Qty2
 

 RightField : Invoice_0007_RateTax
 RightField : Invoice_0007_Rate
 RightField : Invoice_0007_Per
 RightField : Invoice_0007_Disc
 RightField : Invoice_0007_Amount
 
 Local : Field: Invoice_0007_Qty : Set as : "( " + $$String:($BilledQty):Symbol,ShortForm,Secondary + " )"
 Local : Field: Invoice_0007_RateTax :Type:Number
 Local : Field: Invoice_0007_RateTax :Format:"No Zero,Decimal:2"


 ;
[Part: Invoice_0007 AltQty2]
 Line : Invoice_0007 AltQty2
 
[Line: Invoice_0007 AltQty2]
 Local : Field: default : Delete:Storage
 Local : Field: default : Delete:Inactive
 Local : Field: default : Set as:""
 Local : Field: default : Format:"No zero"
 
 Local : Field: Invoice_0007_Qty : Set as : "( " + $$String:$VCH_SecondAltQtyv + " " + @@Item_AdditionalUnits + " )"
 
 Field : Invoice_0007_No
 Field : Invoice_0007_Item
 
 RightField : Invoice_0007_HSN
 RightField : Invoice_0007_GST
 RightField : Invoice_0007_Qty
 ;RightField : Invoice_0007_Qty2
 

 RightField : Invoice_0007_RateTax
 RightField : Invoice_0007_Rate
 RightField : Invoice_0007_Per
 RightField : Invoice_0007_Disc
 RightField : Invoice_0007_Amount
 
 Local : Field: Invoice_0007_RateTax :Type:String
 Local : Field: Invoice_0007_RateTax :Format:"No Zero,Decimal:2"

 
[Field:Invoice_0007_No]
 Use : Name field 
 Set as : $$Line
 Width : 5 mm
 Style : Small bold
 Align : Centre
 Border : thin left right
 
[Field:Invoice_0007_Item]
 Use : name field 
 Set as : $Stockitemname
 Full Width:yes
 Style : Small bold
 Align : Left
 Border : thin left 
 Inactive: $StockItemname contains "End of List"
 Line:0
 
[Field:Invoice_0007_HSN]
 Use : name field 
 Set as : If NOT $GSTIsTransLedEx Then "" Else $GSTItemHSNCodeEx
 Width : 5 mm
 Style : Small bold
 Align : Left
 Border : thin left 
 Invisible : NOT @@InvGSTHSNDetais


[Field: Invoice_0007_GST]
 Use : Number Field
 Set as : If NOT $GSTIsTransLedEx Then "" Else $GSTClsfnIGSTRateEx
 Style : Small
 Border : Thin Left
 Width : 5 mm
 Align : Centre
 ;Format : "Percentage"
 Invisible: NOT @@InvGSTIGSTRate

[Field:Invoice_0007_Qty]
 Use : Name field;QtySecondaryField
 ;Set as : $BilledQty 
 ;Set as : "( " + $$String:($BilledQty):Symbol,ShortForm,Secondary + " )"
 Width : 5 mm
 Style : Small bold
 Align : Right
 Border : thin left 
 ;Format : "NoZero,ShortForm"

[Field:Invoice_0007_Qty2]
 Use : Qty field 
 Set as : $BilledQty 
 Width : 5 mm
 Style : Small bold
 Align : Right
 Border : thin left 
 ;Format : "No Symbol"
 


[Field: Invoice_0007_RateTax]
 Use : Rate Price FIELD
 ;Set as : $Rate
 Width : 5 mm
 Align : Right
 Border : THIN LEFT 
 Style : Small BOLD
 Set as : $$AsRate:$$Number:$INCLVATRATE
 Invisible : @@IsVChGVATApplicable OR NOT @@IsSales OR NOT @@InvWithRateIncl
 Format:"No zero"
 
[Field: Invoice_0007_Rate]
 Use : Rate Price FIELD
 Set as : $Rate
 Width : 5 mm
 Align : Right
 Border : THIN LEFT 
 Style : Small BOLD

 
[Field: Invoice_0007_Per]
 Use : Rate Units Field
 Set as : $Rate
 Width : 5 mm
 Align : Left
 Border : THIN LEFT 
 Style : Small BOLD
 
[Field: Invoice_0007_Disc]
 Use : Number Field
 Set as : $Discount
 Width : 5 mm
 Align : Right
 Border : THIN LEFT 
 Style : Small BOLD
 Format : "Percentage,no zero"
 Invisible : If (@@IsJobOrderOut OR @@IsJobOrderIn OR (@@IsSales And (@@AcctsInvoice_0007 OR @@AcctsInvoice_0007Mfgr))) Then Yes Else (NOT @@WithDiscount OR (NOT @@InvWithRate AND NOT @@InvWithAmt) OR @@InvWithDiscount)

[Field: Invoice_0007_Amount]
 Use : amount FIELD
 Set as : $amount
 Width : 25 mm
 Align : Right
 Border : THIN LEFT RIGHT
 Style : Small BOLD
 

[Part: Invoice_0007_Total]
 
 Line: Invoice_0007_Total
 Common Borders:Yes
 

[Line:Invoice_0007_Total]

 Local : Field: default : Delete:Storage
 Local : Field: default : Delete:Inactive
 
 Field : Invoice_0007_No
 Field : Invoice_0007_Item
 
 RightField : Invoice_0007_HSN
 RightField : Invoice_0007_GST
 ;RightField : Invoice_0007_Qty
 RightField : Invoice_0007_Qty2

 
 RightField : Invoice_0007_RateTax
 RightField : Invoice_0007_Rate
 RightField : Invoice_0007_Per
 RightField : Invoice_0007_Disc
 RightField : Invoice_0007_Amount
 

 Local: Field: default : Style: Small bold
 Local: Field: default : Delete:Storage


 Local: Field: Invoice_0007_No: Set as: ""
 Local: Field: Invoice_0007_Item: Set as: "Total"
 Local: Field: Invoice_0007_Item: Align:Right
 Local: Field: Invoice_0007_HSN: Set as: ""
 
 Local: Field: Invoice_0007_Qty: Set as: $$Total:Invoice_0007_iQty
 Local: Field: Invoice_0007_Qty2: Set as: $$Total:Invoice_0007_Qty2
 Local: Field: Invoice_0007_Rate: Set as: ""
 Local: Field: Invoice_0007_Disc: Set as: ""
 Local: Field: Invoice_0007_Amount: Set as: $$CollAmtTotal:InventoryEntries:$Amount
 
 Border: thin top Bottom
 

[Part:Invoice_0007_BankDetails]
 
 Part : Invoice_0007 Bank
 Right Part : Invoice_0007 Ledgers
 
 Vertical : No
 Border : thin left
 ;Local : Line:Default : Space Top : 1 mm
 


[Part:Invoice_0007_Narration] 
 Line: Invoice_0007_Narration
 Border:Thin Box
 ;Invisible:$$IsEmpty:$Narration
 Invisible : NOT @@InvWithNarr OR $$IsEmpty:$Narration
 
[Line: Invoice_0007_Narration]
 Fields : Invoice_0007_Narration
 ;Border : Thin Bottom
 
[Field: Invoice_0007_Narration]
 Use : Name Field
 Set as : $Narration
 Style : Small bold
 Full Width : Yes
 Line : 0
 
[Part:Invoice_0007_Amount_Chargeable2] 
 Line: Invoice_0007_Amount_Chargeable2
 Border:Thin top Left Right 
 
[Line: Invoice_0007_Amount_Chargeable2]
 Fields : Invoice_0007_Amount_Chargeable
 ;Border : Thin Bottom
 
[Field: Invoice_0007_Amount_Chargeable]
 Use : Name Field
 Set as : "In Words : " + $$InWords:$Amount + " Only"
 Style : Small bold
 Full Width : Yes
 Line : 0
 

[Part:Invoice_0007Bank]
 Part : Invoice_0007Bank2
 Part : UPIQRCode_Invoice_0007
 
; Space Top : .6


[Part:Invoice_0007Bank2] 
 Line : QRCode_TWS_0007BankTitle
 Line : Invoice_0007_Bank Name1
 Line : Invoice_0007_AcNo1
 Line : Invoice_0007_Bank_Branch
 Line : Invoice_0007_Bank_IFSC
 
 
 Local : Field: medium prompt : Style : Small
 Local : Field: Short prompt : Style : Small
 Local : Field: medium prompt : Width : 10
 Local : Field: Short prompt : Width : 5

[Line: QRCode_TWS_0007BankTitle]
 Fields : Simple Field
 Local : Field : Simple Field : Set as : "Company's Bank Details"
 Local : Field : Simple Field : Width:25
 ;Local : Field : Simple Field : Space Left:7
 Local : Field : Simple Field : Style:Small bold
 
 Border : thin bottom
 
[Line: Invoice_0007_GPayNov]
 Field : Medium Prompt,Invoice_0007_BankName1
 
 Local : Field: medium prompt: Set as: "Phone/Gpay"
 Local : Field: Invoice_0007_BankName1: Set as: @@Invoice_0007_GPayNo

 Invisible:$$IsEmpty:@@Invoice_0007_GPayNo
 
[Line: Invoice_0007_Bank Name1]
 Field : Medium Prompt,Invoice_0007_BankName1
 
 Local : Field: medium prompt: Set as: "Bank Name"
 Local : Field: Invoice_0007_BankName1: Set as: $MailingName:Ledger:@@VchBankName

; Field : Short Prompt,Invoice_0007_BankName2
; Local : Field: Short prompt: Set as: "A/c No"
; Local : Field: Invoice_0007_BankName2: Set as: $BankDetails:Ledger:@@VchBankName

[Field: Invoice_0007_Bank Name1]
 Use : Name Field
 Style : Small bold
 Width : 15

[Field: Invoice_0007_Bank Name2]
 Use : Name Field
 Style : Small bold
 Width : 11

 
[Line: Invoice_0007_AcNo1]
 Field : Medium Prompt,Invoice_0007_BankName1
 
 Local : Field: medium prompt: Set as: "A/c No"
 Local : Field: Invoice_0007_BankName1: Set as: $BankDetails:Ledger:@@VchBankName

[Line: Invoice_0007_Bank_Branch]
 Field : Medium Prompt,Invoice_0007_BankName1
 
 Local : Field: medium prompt: Set as: "Branch"
 Local : Field: Invoice_0007_BankName1: Set as: $BankBranchName:Ledger:@@VchBankName

 ;Field : Short Prompt,Invoice_0007_BankName2
 ;Local : Field: Short prompt: Set as: "IFSC"
 ;Local : Field: Invoice_0007_BankName2: Set as: $IFSCode:Ledger:@@VchBankName
 
[Line: Invoice_0007_Bank_IFSC]
 Field : Medium Prompt,Invoice_0007_BankName1
 
 Local : Field: medium prompt: Set as: "IFS Code"
 Local : Field: Invoice_0007_BankName1: Set as: $IFSCode:Ledger:@@VchBankName

[Collection:Invoice_0007_LedgerEntries]
 Source Collection : Default
 Walk : LedgerEntries
 By : PLName : IF $Parent:Ledger:$LedgerName contains "Hamali" then $Parent:Ledger:$LedgerName else $LedgerName
 Fetch : LedgerName , Amount
 
 Aggr Compute:Amount : Sum: $Amount

 Filter : Invoice_0007_LedgerEntriesEmptyValue
 
[System:Formulas]
 Invoice_0007_LedgerEntriesEmptyValue : NOT $$IsEmpty:$Amount
 SameInvoice_0007_LedgerEntries : $LedgerName = $partyledgername
 
[Part: Invoice_0007 Ledgers]
 
 Line : Invoice_0007 Ledgers
 Repeat : Invoice_0007 Ledgers : Invoice_0007_LedgerEntries
 
 BottomLines : Invoice_0007 LedgerTotal
 
 ;Lines : Invoice_0007_Paid
 ;Lines : Invoice_0007_BalAmt
 
 Common Borders : Yes
 Float : No
 
 ;Local : Line:Default : Space Top: .15
 
[Line: Invoice_0007 Ledgers]
 Field : Invoice_0007_LedgerName
 rightField : Invoice_0007_Amount2
 
 Remove if : $LedgerName = $$Owner:$PartyLedgerName

[Field:Invoice_0007_LedgerName]
 Use : name field 
 Set as : IF $Parent:Ledger:$LedgerName contains "Hamali" then $Parent:Ledger:$LedgerName else $LedgerName
 Width : 30 mm
 Style : Small ;bold
 Align : Left
 Border : thin left 
 Inactive: $LedgerName contains "End of List"

[Field: Invoice_0007_Amount2]
 Use : amount FIELD
 Set as : $amount
 Width : 19 mm
 Align : Right
 Border : THIN LEFT RIGHT
 Style : Small BOLD

[Field: Invoice_0007_AmountP]
 Use : number FIELD
 Format : "No Zero,decimal:2"
 Set as : $VCH_PaidAmount
 Width : 18 mm
 Align : Right
 Border : THIN LEFT RIGHT
 Style : Small BOLD
 
[Field: Invoice_0007_AmountB]
 Use : number FIELD
 Format : "No Zero,decimal:2"
 Set as : $VCH_BalAmount
 Width : 18 mm
 Align : Right
 Border : THIN LEFT RIGHT
 Style : Small BOLD
 
 
 
[Line: Invoice_0007 LedgerTotal]
 Field : Invoice_0007_LedgerName
 RightField : Invoice_0007_Amount2
 
 Local : Field : Default : Style : Small bold
 
 Local : Field: Invoice_0007_LedgerName : Set as : "Total Amount"
 Local : Field: Invoice_0007iamount2 : Set as : $Amount
 Border : Thin Top
 
[Line: Invoice_0007_Paid]
 Field : Invoice_0007_LedgerName
 RightField : Invoice_0007_AmountP
 
 Local : Field : Default : Style : Small bold
 
 Local : Field: Invoice_0007_LedgerName : Set as : "Paid Amount"
 
[Line: Invoice_0007_BalAmt]
 Field : Invoice_0007_LedgerName
 RightField : Invoice_0007_AmountB
 
 Local : Field : Default : Style : Small bold
 
 Local : Field: Invoice_0007_LedgerName : Set as : "Balance Amount"
 


[Part:Invoice_0007 ForCMP]
 
 Part : Invoice_0007 Declaration
 Right Part : Invoice_0007 ForCMP2
 
 Vertical : No
 Border: thin Left Right Bottom
 

[Part:Invoice_0007 Declaration] 
 Lines : EXPINV Declaration;, EXPINV LBTDeclTitle, EXPINV LBTDecl
 Local : Field : EXPINV SubTitle : Info : $$LocaleString:"Declaration"
 Local : Field : EXPINV SubTitle : Cells : 6 * ($$Quotient:@@ExcelCellColumn:8)
 Invisible : (@@AcctsInvoice_0007 and $$IsEmpty:$VCHPrintDecl:VoucherType:##SVVoucherType) OR NOT @@InvDeclaration OR +
  ((@@IsSalesOrder OR @@IsPurcOrder OR @@IsJobOrderIn OR @@IsJobOrderOut OR @@IsDebitNote OR @@IsCreditNote OR @@IsJobMaterialIssue) + 
  And $$IsEmpty:$VCHPrintDecl:VoucherType:##SVVoucherType) 
 

 Local : Field : EXPINV SubTitle : Invisible : (@@AcctsInvoice_0007 and $$IsEmpty:$VCHPrintDecl:VoucherType:##SVVoucherType) OR NOT @@InvDeclaration OR +
  ((@@IsSalesOrder OR @@IsPurcOrder OR @@IsJobOrderIn OR @@IsJobOrderOut OR @@IsDebitNote OR @@IsCreditNote OR @@IsJobMaterialIssue) + 
  And $$IsEmpty:$VCHPrintDecl:VoucherType:##SVVoucherType) 
  
 ;Local : Field : EXPINV SubTitle : Border: Thin Bottom
 ;Local : Field : EXPINV LBTDeclTitle : Cells : 6 * ($$Quotient:@@ExcelCellColumn:8)
 ;Local : Field : EXPINV LBTDeclTitle : Invisible : @@IsOrderVch OR @@IsInwardVoucher OR @@IsDebitNote OR @@IsCreditNote OR (@@AcctsInvoice_0007 and $$IsEmpty:$VCHPrintDecl:VoucherType:##SVVoucherType) OR NOT @@InvLBTDeclaration
 
 ;Option : Inactive Part : (@@AcctsInvoice_0007 and $$IsEmpty:$VCHPrintDecl:VoucherType:##SVVoucherType) OR NOT @@InvDeclaration
 ;Option : LBTInactive : (@@InvLBTDeclaration AND NOT $$IsEmpty:$LBTDeclaration:VoucherType:##SVVoucherType) Or (@@IsDelNote and $$IsEmpty:$LBTDeclaration:VoucherType:##SVVoucherType)
 ;Option : EXPINV InvDeclHeight : $$IsEmpty:$VCHPrintDecl:VoucherType:##SVVoucherType AND ($$IsEmpty:$LBTDeclaration:VoucherType:##SVVoucherType AND NOT @@InvLBTDeclaration)
 
 ;; Option introduced for Quick Draft mode Printing.
 ;; 50% Page Width placed to print Declaration Title.
 ;Option : EXPINV DMDeclTitle : $$InDraftMode AND ##IsDMPartyNameLeftAlign
 
 ;Option : EXPINV DMDeclTitleDMPMode : $$InDMPMode
 ;Option : GST Print ItemTaxDetailsStyleSmall : @@IsGSTOnAppl AND @@IsGSTTaxAnalysisWithItems


 
[Part:Invoice_0007 ForCMP2] 

 Line: Invoice_0007 ForCMP
 
 Bottom Line: Invoice_0007 ForCMPAuth
 
 Border : thin left
 
 Width:35% page

[Line:Invoice_0007 ForCMP] 
 ;Field : Invoice_0007 Jurisdiction
 RightField : Invoice_0007 ForCMP
 Space Top : 1 mm
 
 
[Field: Invoice_0007 Jurisdiction]
 Set as : @JurisStr;"Subject to Aurangabad Jurisdiction"
 JurisStr : $$SPrintf:@@SubjectToJurisdictionFormat:@@Jurisdiction
 Style : Small
 Full Width : Yes
 Align : Left


[Field:Invoice_0007 ForCMP]
 Use : name field
 Set as : "For, " + @@cmpmailname
 Full Width:Yes
 Align :Right
 Style : Smallbold

[Line:Invoice_0007 ForCMPAuth] 
 
 ;Field : Invoice_0007 CustSign
 
 RightField: Invoice_0007 ForCMPAuth
 
 Space Bottom: 1 MM
 Space Top:2
 
[Field:Invoice_0007 CustSign]
 Use : name field
 Set as : "Customer Sign"
 ;Full Width:Yes
 Align : Left
 Style : Small 
 Width : 12
 
[Field:Invoice_0007 ForCMPAuth]
 Use: name field
 Set as: "Authorised Signatory"
 ;Full Width:Yes
 Align:Right
 Style: Small bold
 Width:20
 


[Part:Invoice_0007_MultipleUnit]
 Border:Thin Box
 Invisible:$$NumItems:Invoice_0007_MultipleUnitQtyColl = 1
 
 Line : Invoice_0007_MultipleUnit
 Common Border:Yes
 
[Line:Invoice_0007_MultipleUnit]
 Field : Invoice_0007_No
 Local:Field:Invoice_0007_No : Set as:""
 Fields : Invoice_0007_MultipleUnitQty
 
[Field:Invoice_0007_MultipleUnitQty]
 Set as : "Total Qty : " + $$FullList:Invoice_0007_MultipleUnitQtyColl:$BilledQty
 Align : Left
 Style : Small Bold
 Full Width:Yes
 
[Collection:Invoice_0007_MultipleUnitQtyColl]
 Source Collection : Default
 Walk : InventoryEntries
 Fetch : BilledQty
 By : UnitSymbolBilledQty : $$UnitSymbol:$BilledQty
 
 Aggr Compute : BilledQty : Sum: $BilledQty

 
;; Simple 
[#Part: EXPSMP OtherDetails] 
 Add:Option:UPIInvoice_0007_QRCodes : @@Enable_UPIQRCode_0007 AND @@HVEnable_UPIQRCode_0007; AND ##SA_UPIQRCodePrint
 
[!Part:UPIInvoice_0007_QRCodes]
 Add:Part:At End:UPIQRCode_Invoice_0007
 
;;Regular
[#Part: EXPINV RightSign]
 Add:Option:UPIInvoice_0007_QRCodescvb : @@Enable_UPIQRCode_0007 AND @@HVEnable_UPIQRCode_0007; AND NOT ##SA_UPIQRCodePrint
 
[!Part:UPIInvoice_0007_QRCodescvb]
 Delete:Part:EXPINV ExciseDetails   
 Delete:Bottom Part:EXPINV DateTime,EXPINV LBT Details
 
[#Part: EXPINV BankInfo]
 Add:Option:UPIInvoice_0007_QRCodescv : @@Enable_UPIQRCode_0007 AND @@HVEnable_UPIQRCode_0007 
 
[!Part:UPIInvoice_0007_QRCodescv] 
 Delete:Bottom Part:EXPINV BankDetails
 Add : Bottom Parts : Before:EXPINV Signature : Invoice_0007_BankQRCode
 
[Part: Invoice_0007_BankQRCode]
 
 Part: EXPInvoice_0007 BankDetails
 
 Part: UPIQRCode_Invoice_0007

[Part: EXPInvoice_0007 BankDetails]
 
 Line : EXPInvoice_0007 BankTitle
 Line : EXPInvoice_0007 BankName 
 Line : EXPInvoice_0007 BankAccNo
 Line : EXPInvoice_0007 BankIFSInfo 
 Line : EXPInvoice_0007 BankBranchInfo
 
 Invisible : NOT ##SABankInfo OR $$IsEmpty:@@VchBankName
 
 Local : Field :Medium Prompt : Style : Tiny
 Local : Field :Default : Width : 15;23% Page
 Local : Field :Medium Prompt : Width : 9;12% Page
 Local : Field :Simple Prompt : Width : 9;35% Page
 
[Line: EXPInvoice_0007 BankTitle]
 Fields : Simple Field
 Local : Field : Simple Field : Set as : $$LocaleString:"Company's Bank Details"
 Local : Field : Simple Field : Full Width: Yes
 Option : GST EXPSMP BankDetTitleSryle : @@IsGSTOnAppl AND @@IsGSTTaxAnalysisWithItems 

[Line: EXPInvoice_0007 BankName]
 Fields : Medium Prompt, EXPInvoice_0007 BankName
 Local : Field : Medium Prompt : Set as : $$LocaleString:"Bank Name"

[Line: EXPInvoice_0007 BankAccNo]
 Fields : Medium Prompt, EXPInvoice_0007 BankAccountNo
 Local : Field : Medium Prompt : Set as : $$LocaleString:"A/c No."

[Line: EXPInvoice_0007 BankIFSInfo]
 Fields : Medium Prompt, EXPInvoice_0007 BankIFS
 Local : Field : Medium Prompt : Set as : $$LocaleString:"IFS Code" 

[Line: EXPInvoice_0007 BankBranchInfo]
 Fields : Medium Prompt, EXPInvoice_0007 BankBranchName
 Local : Field : Medium Prompt : Set as : $$LocaleString:"Branch" 

[Field: EXPInvoice_0007 BankName]
 Use : Name Field
 Set as : If NOT $$IsEmpty:@@VchBankMailingName Then @@VchBankMailingName Else ##SABankName
 Style : Tiny Bold
 Full Width : Yes
 Inactive : $$IsSysName:##SABankName OR ($$IsEmpty:$(Ledger,##SABankName).Name AND $$IsEmpty:($(VoucherType, ##SVVoucherType).VchPrintBankName))
 
[Field: EXPInvoice_0007 BankAccountNo]
 Use : Name Field
 Set as : $BankDetails:Ledger:@@VchBankName
 Style : Tiny Bold
 Full Width : Yes
 Inactive : $$IsEmpty:@@VchBankName

[Field: EXPInvoice_0007 BankIFS]
 Use : Name Field
 Set as : If $$IsEmpty:@IFSCode Then "" Else @IFSCode
 IFSCode : $IFSCode:Ledger:@@VchBankName
 Style : Tiny Bold
 Full Width : Yes
 Inactive : $$IsEmpty:@@VchBankName

[Field: EXPInvoice_0007 BankBranchName]
 Use : Name Field
 Set as : If $$IsEmpty:@BranchName Then "" Else @BranchName
 BranchName : $BankBranchName:Ledger:@@VchBankName
 Style : Tiny Bold
 Full Width : Yes
 Inactive : $$IsEmpty:@@VchBankName

[Part: UPIQRCode_Invoice_0007]
 Part: UPIQRCode_TWS_0007_1
 Part: UPIQRCode_TWS_0007_2

 Vertical:Yes

 Invisible : NOT (@@Enable_UPIQRCode_0007 AND @@HVEnable_UPIQRCode_0007)
 Border:thin left
 
[Part: UPIQRCode_TWS_0007_1]
 Line:UPIQRCode_TWS_0007_1
 Border:thin bottom 

[Line:UPIQRCode_TWS_0007_1]
 Field:UPIQRCode_TWS_0007_1
 
[Field:UPIQRCode_TWS_0007_1]
 Set as: "Scan & Pay"
 Width : 9
 Align:Centre
 Style:Small bold

[Part: UPIQRCode_TWS_0007_2]
 QRCode : @@UPI_QRCode_0007Main : Yes
 
 Width : 10.1
 Height : 4
 
 Horizontal Align:Centre
 
 Lines : EXPINV SubTitle
 Local : Field : EXPINVSubTitle : Info : "" 
 Local : Field : EXPINV SubTitle : Width : 3;5% Page
 Local : Field : EXPINV SubTitle : Cells : 1
 
[System:Formulas]
 UPI_QRCode_0007Main : $$Remove_UPI_QRCode_0007:@@UPI_QRCode_0007Value
 
 UPI_QRCode_0007Value : "upi://pay?pa=" + @@UPI_QRCode_0007BHIMUPI + "&pn=" + @@UPI_QRCode_0007CompanyName + "&am=" + @@UPI_QRCode_0007AmtCond + "&cu=" + @@UPI_QRCode_0007Currancy 
 UPI_QRCode_0007AmtCond : IF @@UPI_QRCode_0007AmtAuto THEN @@UPI_QRCode_0007Amount ELSE ""
 
[System:Formulas] 
 UPI_QRCode_0007CompanyName : @@eUPI_QRCode_0007CompanyName
 
 UPI_QRCode_0007BHIMUPI : @@eUPI_QRCode_0007BHIMUPI
 
 UPI_QRCode_0007Amount : $$String:$Amount
 
 UPI_QRCode_0007Currancy : "INR"
 
[Line: UPIQRCode_Invoice_0007]
 Field : UPIQRCode_Invoice_0007
 
[Field : UPIQRCode_Invoice_0007]
 set as : ""
 
[System: formula]
 eUPI_QRCode_0007CompanyName : $UPI_QRCode_0007CompanyName:company:##svcurrentcompany
 eUPI_QRCode_0007BHIMUPI : $UPI_QRCode_0007BHIMUPI:company:##svcurrentcompany


[System:Formulae]
 
 sUPI_QRCode_0007CompanyName : $UPI_QRCode_0007CompanyName
 sUPI_QRCode_0007BHIMUPI : $UPI_QRCode_0007BHIMUPI
 sUPI_QRCode_0007Amount : "1.00"
 
[Function: Remove_UPI_QRCode_0007]

 Parameter : InputString : String

 Variable : StrOpr : String
 Variable : StrOut : String
 Variable : StrLen : Number
 Variable : StrCnt : Number

 Return : String

 01 : If : NOT $$IsEmpty:##InputString
 02 : Set : StrLen : $$StringLength:##InputString
 03 : Set : StrCnt : 0
 04 : Set : StrOut : ""
 05 : WHILE : $$Number:##StrLen != 0
 06 : Set : StrOpr : $$StringPart:##InputString:##StrCnt:1
 08 : IF : NOT $$IsEqual:##StrOpr:"," 
 09 : Set : StrOut : $$String:##StrOut + $$String:##StrOpr
 10 : ENDIF
 11 : Set : StrLen : ##StrLen - 1
 12 : Set : StrCnt : ##StrCnt + 1
 13 : ENDWHILE
 14 : ENDIF
 15 : RETURN : ##StrOut

[#Part: CMP TallyShopFeatures Left]
 Add : Line :Enable_UPIQRCode_0007

[Line : Enable_UPIQRCode_0007]
 Field : medium prompt, Enable_UPIQRCode_0007
 Local : Field : medium prompt : set as : "Enable UPI QR Code in Invoice Print ?"
 Local : Field : Medium Prompt : width : 35
 space top : 0.2 cm
 
[Field : Enable_UPIQRCode_0007]
 Use : Logical field
 Storage : Enable_UPIQRCode_0007
 
 Sub Form: UPIQRCode_Setting_0007 : $Enable_UPIQRCode_0007
 
[System: formula]
 Enable_UPIQRCode_0007 : $Enable_UPIQRCode_0007:company:##svcurrentcompany 
 HVEnable_UPIQRCode_0007 : $Enable_UPIQRCode_0007:voucherType:##SVVoucherType
 
 
 UPI_QRCode_0007AmtAuto : $UPI_QRCode_0007AmtAuto:company:##svcurrentcompany 
 UPI_QRCode_0007UPINo : $UPI_QRCode_0007UPINo:company:##svcurrentcompany 
 
[System: udf]
 Enable_UPIQRCode_0007 : Logical : 302

[#Part: VTYP Main Left]
 add : Parts : At End : HVEnable_UPIQRCode_0007
 
[Part: HVEnable_UPIQRCode_0007]
 Line: HVEnable_UPIQRCode_0007
 Local: Field: LongPrompt: Width : @@LongWidth + 5

[Line: HVEnable_UPIQRCode_0007]
 Space Top: 2 mm
 Field: Long prompt,HVEnable_UPIQRCode_0007
 Local: Field: Long prompt : Set as: "Enable UPI QR Code in Invoice Print ?"
 
 Invisible: not @@Enable_UPIQRCode_0007

[Field: HVEnable_UPIQRCode_0007]
 Use: logical field
 Storage: Enable_UPIQRCode_0007
 
[Report : UPIQRCode_Setting_0007]
 Title : "UPI QR Code Setting"
 
 Form : UPIQRCode_Setting_0007

[Form: UPIQRCode_Setting_0007]
 
 Part : UPIQRCode_Setting_0007
 
 Full Height : No
 Full Width : No
 
 Space Top : 0
 Space Bottom: 0
 Background : PurchaseVocherclr 
 Horizontal Align : Centre
 Vertical Align : Centre
 Option:small size form:Yes

[Part:UPIQRCode_Save_0007]
 
 Line:UPIQRCode_Save_0007
 
[Line:UPIQRCode_Save_0007]
 
 RightField:UPIQRCode_Save_0007

[Field:UPIQRCode_Save_0007]
 
 Use:Name Field
 Read Only:Yes
 Width:3 mm

[Part: UPIQRCode_Setting_0007]
 
 Part: UPIQRCode_Setting_00071
 
 Part: UPIQRCode_Setting_00072
 
 Border:thin box

[Part: UPIQRCode_Setting_00072]
 
 Part: UPIQRCode_Setting_000711
 Part: UPIQRCode_Setting_000722

 Vertical:Yes
 Border:thin left
 Background:White
 Space Top:.5
 Width : 25% page
 
[Part: UPIQRCode_Setting_000711]
 Line : Form SubTitle
 Local : Field : Form SubTitle: Info: "UPI QR Code Preview" 
 Local : Field : Form SubTitle: Full Width:Yes
 ;Width : 20% page
 
[Part: UPIQRCode_Setting_000722]
 
 QRCode : "upi://pay?pa=" + @@sUPI_QRCode_0007BHIMUPI + "&pn=" + @@sUPI_QRCode_0007CompanyName + "&am=" + @@sUPI_QRCode_0007Amount + "&cu=" + @@UPI_QRCode_0007Currancy : Yes
 
 Width : 25% page
 Height : 5 cm

 Horizontal Align:Centre
 
 Lines : EXPINV SubTitle
 Local : Field : EXPINV SubTitle : Info : "QR Code"
 Local : Field : EXPINV SubTitle : Full Width:Yes;Width : 10% Page
 Local : Field : EXPINV SubTitle : Cells : 1
 
[Part: UPIQRCode_Setting_00071]
 Line : Form SubTitle
 Local : Field : Form SubTitle: Info: $$LocaleString:"UPI QR Code Setting" 

 Line : UPI_QRCode_0007CompanyName
 Line : UPI_QRCode_0007BHIMUPI
 Line : UPI_QRCode_0007AmtAuto
 
 Local : Field : Medium Prompt : width : 10
 
 BottomLine:UPIQRCode_Save_0007
 Space Top:.5
[Line : UPI_QRCode_0007UPINo]
 Field : medium prompt , UPI_QRCode_0007UPINo
 Local : Field : medium prompt : set as : "UPI Mobile No"
 
 space top : .2
 Space Bottom:.2
 
[Field: UPI_QRCode_0007UPINo]
 Use : Name Field
 Storage : UPI_QRCode_0007UPINo
 Set Always : Yes
 Align : Left
 Style : Normal bold
 Max : 99900
 Case : Normal
 Width : 30
[Line : UPI_QRCode_0007AmtAuto]
 Field : Long prompt , UPI_QRCode_0007AmtAuto
 Local : Field : Long prompt : set as : "Auto Pick Invoice Amount ?"
 Local : Field : Long prompt : Width : 18
 
 Space Bottom:.2
 
[Field: UPI_QRCode_0007AmtAuto]
 Use : Logical Field
 Storage : UPI_QRCode_0007AmtAuto
 
[Line : UPI_QRCode_0007CompanyName]
 Field : medium prompt , UPI_QRCode_0007CompanyName
 Local : Field : medium prompt : set as : "Name"
 space top : .2
 Space Bottom:.2
 
[Field: UPI_QRCode_0007CompanyName]
 Use : Name Field
 Storage : UPI_QRCode_0007CompanyName
 Set Always : Yes
 Align : Left
 Style : Normal bold
 Max : 99900
 Case : Normal
 Width : 30
 Validation : NOT $$IsEmpty:$$Value
 
[Line : UPI_QRCode_0007BHIMUPI]
 Field : medium prompt , UPI_QRCode_0007BHIMUPI
 Local : Field : medium prompt : set as : "BHIM UPI"
 
 space top : .2
 Space Bottom:.2
 
[Field: UPI_QRCode_0007BHIMUPI]
 Use : Name Field
 Storage : UPI_QRCode_0007BHIMUPI
 Set Always : Yes
 Align : Left
 Style : Normal bold
 Max : 99900
 Case : Normal
 Width : 30
 Validation : NOT $$IsEmpty:$$Value 

[System: Udf]
 UPI_QRCode_0007CompanyName : String : 8502
 UPI_QRCode_0007BHIMUPI : String : 8503
 
 UPI_QRCode_0007AmtAuto : Logical : 8504
 UPI_QRCode_0007UPINo : String : 8505